package models

type User struct {
	Model
	Account  string `gorm:"size:50;unique" json:"account"`
	Password string `gorm:"comment:密碼" json:"password"`
	Email    string `gorm:"size:255;unique" json:"email"`
	Role     string `gorm:"comment:角色" json:"role"`
}

func (u *User) TableName() string {
	return "sys_users"
}
